package org.playground.booking.security.dao;

import java.util.List;
import java.util.Map;

public interface IDao<T extends Object,K> {
    List<T> readAll();
    List<T> readByCreterias(String hql,Map<String,Object> params);
    T readById(K id);

    void update(T toUpdate);

    void delete(T toDelete);

    void save(T toSave);
}
